<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css">
<link href="inside.css" rel="stylesheet" type="text/css">
<title>房客會員註冊</title>
<script type="text/JavaScript">
function check_form()
{
	if(document.form1.user_id.value==''||!isNaN(document.form1.user_id.value))
	{
		alert("請輸入你要申請的賬號！不能全為數字！");
	    return (false);
	}    	
	
    if(document.form1.pass1.value==""||document.form1.pass2.value=="")
    {
        alert("請輸入密碼號碼");
        return (false);
    }
    if(document.form1.pass1.value!=document.form1.pass2.value)
    {
        alert("兩次密碼不一致");
        return (false);
    }
    if(document.form1.name.value=="")
    {
        alert("請輸姓名");
        return (false);
    }   	
	
	 if(document.form1.mobile.value=="")
    {
        alert("請輸入手機號碼");
        return (false);
    } 
	if(document.form1.birthyear.value==""||document.form1.birthmonth.value==""||document.form1.birthday.value=="")
    {
        alert("請輸入完整的生日日期");
        return (false);
    }   
	
	if(document.form1.job.value=="")
    {
        alert("請選擇你的職業");
        return (false);
    } 
	
	var email = document.form1.email.value;
	var sReg = /[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/; 
	if ( ! sReg.test(email) || document.form1.email.value=="" ) 
	{ 
		alert("Email地阯錯誤！請重新輸入！"); 
		return false; 
	} 

	if(document.form1.agree.value!="1")
    {
        alert("先同意群格租屋會員規章才能注冊");
        return (false);
    }   
}
</script>
</head>

<body>
<div id="container">
<!--header-->
<{include file="./header.html"}>   
<!--header-->

<!--menu-->
<{include file="./menu.html"}> 
<!--menu-->

<div class="main2">
  <div class="inside-left">
    <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#bbbbbb border=0>
        <TR>
          <TD>
            <TABLE height="100%" cellSpacing=0 cellPadding=4 width="100%" 
            border=0 bgcolor="#BBBBBB" style="border:solid 1px #BBBBB;">
              <TBODY>
              <TR align=middle>
                <TD colSpan=2></TD></TR>
              <TR align=middle>
                <TD  
                  colSpan=2 align="center"  background="images/zhuce_78.jpg"><span  style="color:#000000;font-size:16px">房客會員基本資料</span><BR>
                <FONT color=red>*號為必填欄位</FONT> </TD>
              </TR>
               <form method="post" action="tenant.php" name="form1" style="border:0" onSubmit="return check_form()">
              <TR>
                <TD width="16%" bgColor=#ffffff height=30><FONT 
                  color=#1f7710>*帳號</FONT></TD>
                <TD width="84%" bgColor=#ffffff height=30><FONT 
                  color=#666666><INPUT 
                  name=user_id class="input2" id=username size=12 maxLength=12>
建議用英文數字組合                </FONT></TD>
              </TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*密碼</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666><INPUT 
                  name="pass1" type=password class="input2" 
                  id=firstPassword size=12 maxLength=12> 
                </FONT></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*密碼確認</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666><INPUT 
                  name="pass2" type=password class="input2" 
                  id=confirmPassword size=12 maxLength=12> 
                </FONT></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*房客姓名</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666><INPUT name=name class="input2" 
                  id=name size=12 maxLength=12> 
                </FONT></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*手機</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666><INPUT name=mobile class="input2" 
                  id=mobile size=12 maxLength=12> 
                </FONT></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*性別</FONT></TD>
                <TD bgColor=#ffffff height=30>
                <INPUT name=sex type=radio class="input2" value=男 checked> 
                <font color="#000000">男</font>　 <INPUT name=sex type=radio class="input2" value=女> 
                <font color="#000000">女</font></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*生日</FONT></TD>
                <TD bgColor=#ffffff height=30><font color="#000000">西元</font> <SELECT name=birthyear> 
                    <OPTION selected>請選擇</OPTION> <OPTION 
                    value=1910>1910</OPTION> <OPTION value=1911>1911</OPTION> 
                    <OPTION value=1912>1912</OPTION> <OPTION 
                    value=1913>1913</OPTION> <OPTION value=1914>1914</OPTION> 
                    <OPTION value=1915>1915</OPTION> <OPTION 
                    value=1916>1916</OPTION> <OPTION value=1917>1917</OPTION> 
                    <OPTION value=1918>1918</OPTION> <OPTION 
                    value=1919>1919</OPTION> <OPTION value=1920>1920</OPTION> 
                    <OPTION value=1921>1921</OPTION> <OPTION 
                    value=1922>1922</OPTION> <OPTION value=1923>1923</OPTION> 
                    <OPTION value=1924>1924</OPTION> <OPTION 
                    value=1925>1925</OPTION> <OPTION value=1926>1926</OPTION> 
                    <OPTION value=1927>1927</OPTION> <OPTION 
                    value=1928>1928</OPTION> <OPTION value=1929>1929</OPTION> 
                    <OPTION value=1930>1930</OPTION> <OPTION 
                    value=1931>1931</OPTION> <OPTION value=1932>1932</OPTION> 
                    <OPTION value=1933>1933</OPTION> <OPTION 
                    value=1934>1934</OPTION> <OPTION value=1935>1935</OPTION> 
                    <OPTION value=1936>1936</OPTION> <OPTION 
                    value=1937>1937</OPTION> <OPTION value=1938>1938</OPTION> 
                    <OPTION value=1939>1939</OPTION> <OPTION 
                    value=1940>1940</OPTION> <OPTION value=1941>1941</OPTION> 
                    <OPTION value=1942>1942</OPTION> <OPTION 
                    value=1943>1943</OPTION> <OPTION value=1944>1944</OPTION> 
                    <OPTION value=1945>1945</OPTION> <OPTION 
                    value=1946>1946</OPTION> <OPTION value=1947>1947</OPTION> 
                    <OPTION value=1948>1948</OPTION> <OPTION 
                    value=1949>1949</OPTION> <OPTION value=1950>1950</OPTION> 
                    <OPTION value=1951>1951</OPTION> <OPTION 
                    value=1952>1952</OPTION> <OPTION value=1953>1953</OPTION> 
                    <OPTION value=1954>1954</OPTION> <OPTION 
                    value=1955>1955</OPTION> <OPTION value=1956>1956</OPTION> 
                    <OPTION value=1957>1957</OPTION> <OPTION 
                    value=1958>1958</OPTION> <OPTION value=1959>1959</OPTION> 
                    <OPTION value=1960>1960</OPTION> <OPTION 
                    value=1961>1961</OPTION> <OPTION value=1962>1962</OPTION> 
                    <OPTION value=1963>1963</OPTION> <OPTION 
                    value=1964>1964</OPTION> <OPTION value=1965>1965</OPTION> 
                    <OPTION value=1966>1966</OPTION> <OPTION 
                    value=1967>1967</OPTION> <OPTION value=1968>1968</OPTION> 
                    <OPTION value=1969>1969</OPTION> <OPTION 
                    value=1970>1970</OPTION> <OPTION value=1971>1971</OPTION> 
                    <OPTION value=1972>1972</OPTION> <OPTION 
                    value=1973>1973</OPTION> <OPTION value=1974>1974</OPTION> 
                    <OPTION value=1975>1975</OPTION> <OPTION 
                    value=1976>1976</OPTION> <OPTION value=1977>1977</OPTION> 
                    <OPTION value=1978>1978</OPTION> <OPTION 
                    value=1979>1979</OPTION> <OPTION value=1980>1980</OPTION> 
                    <OPTION value=1981>1981</OPTION> <OPTION 
                    value=1982>1982</OPTION> <OPTION value=1983>1983</OPTION> 
                    <OPTION value=1984>1984</OPTION> <OPTION 
                    value=1985>1985</OPTION> <OPTION value=1986>1986</OPTION> 
                    <OPTION value=1987>1987</OPTION> <OPTION 
                    value=1988>1988</OPTION> <OPTION value=1989>1989</OPTION> 
                    <OPTION value=1990>1990</OPTION> <OPTION 
                    value=1991>1991</OPTION> <OPTION value=1992>1992</OPTION> 
                    <OPTION value=1993>1993</OPTION> <OPTION 
                    value=1994>1994</OPTION> <OPTION value=1995>1995</OPTION> 
                    <OPTION value=1996>1996</OPTION> <OPTION 
                    value=1997>1997</OPTION> <OPTION value=1998>1998</OPTION> 
                    <OPTION value=1999>1999</OPTION> <OPTION 
                    value=2000>2000</OPTION>

					 <OPTION 
                    value=2001>2001</OPTION> <OPTION value=2002>2002</OPTION> 
                    <OPTION value=2003>2003</OPTION> <OPTION 
                    value=2004>2004</OPTION> <OPTION value=2005>2005</OPTION> 
                    <OPTION value=2006>2006</OPTION> <OPTION 
                    value=2007>2007</OPTION> <OPTION value=2008>2008</OPTION> 
                    <OPTION value=2009>2009</OPTION> <OPTION 
                    value=2010>2010</OPTION>
					
					
					
					
					
					
					</SELECT> 
					
					
					<font color="#000000">年</font> <SELECT name=birthmonth> 
                    <OPTION selected>請選擇</OPTION> <OPTION value=1>1</OPTION> 
                    <OPTION value=2>2</OPTION> <OPTION value=3>3</OPTION> 
                    <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> 
                    <OPTION value=6>6</OPTION> <OPTION value=7>7</OPTION> 
                    <OPTION value=8>8</OPTION> <OPTION value=9>9</OPTION> 
                    <OPTION value=10>10</OPTION> <OPTION value=11>11</OPTION> 
                    <OPTION value=12>12</OPTION></SELECT> <font color="#000000">月</font> <SELECT name=birthday> 
                    <OPTION selected>請選擇</OPTION> <OPTION value=1>1</OPTION> 
                    <OPTION value=2>2</OPTION> <OPTION value=3>3</OPTION> 
                    <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> 
                    <OPTION value=6>6</OPTION> <OPTION value=7>7</OPTION> 
                    <OPTION value=8>8</OPTION> <OPTION value=9>9</OPTION> 
                    <OPTION value=10>10</OPTION> <OPTION value=11>11</OPTION> 
                    <OPTION value=12>12</OPTION> <OPTION value=13>13</OPTION> 
                    <OPTION value=14>14</OPTION> <OPTION value=15>15</OPTION> 
                    <OPTION value=16>16</OPTION> <OPTION value=17>17</OPTION> 
                    <OPTION value=18>18</OPTION> <OPTION value=19>19</OPTION> 
                    <OPTION value=20>20</OPTION> <OPTION value=21>21</OPTION> 
                    <OPTION value=22>22</OPTION> <OPTION value=23>23</OPTION> 
                    <OPTION value=24>24</OPTION> <OPTION value=25>25</OPTION> 
                    <OPTION value=26>26</OPTION> <OPTION value=27>27</OPTION> 
                    <OPTION value=28>28</OPTION> <OPTION value=29>29</OPTION> 
                    <OPTION value=30>30</OPTION> <OPTION 
                  value=31>31</OPTION></SELECT> 日</TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*職業</FONT></TD>
                <TD bgColor=#ffffff height=30><SELECT name=job style="width:180px;">
                <OPTION selected>請選擇</OPTION> 
                <{$jobb}></SELECT> </TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*電子信箱</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                <INPUT name=email class="input2" id=email size=30 maxLength=30> 
                </FONT></TD></TR>
              <TR>              
                <TD bgColor=#ffffff height=30>會員規章</TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666><TEXTAREA name=rules cols=70 rows=8 class="input2" id=rules><{$rule}></TEXTAREA> 
                  </FONT></TD></TR>
              <TR bgColor=#ffffff>
                <TD>&nbsp; </TD>
                <TD height="30"><INPUT name="agree" type=checkbox class="input2" id=agree value="1" checked> 
                  <font color="#000000">我同意群格租屋會員規章</font></TD></TR>
              <TR bgColor=#ffffff>
                <TD colSpan=2 height="30"><INPUT name=Submit type=submit class="input2" id=Submit  value="  確定  "> 
                  　 <INPUT name=reset type=reset class="input2" value="  重填  "> 
                  <input type="hidden" name="add" value="1">
            </TD></TR>
            </form>
            </TBODY></TABLE></TD></TR></TBODY></TABLE>
  </div>
  <div class="inside-right">
   <!--right-->
    <{include file="./right.html"}> 
    <!--right-->
</div>
<!--foot-->
<{include file="./footer.html"}> 
<!--foot-->
</div>
</body>
</html>
